package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.BannerDao;
import com.gdk.dao.CameraDao;
import com.gdk.dao.LoginDao;
import com.gdk.dao.NavigationDao;
import com.gdk.service.ArticleService;
import com.gdk.service.BannerService;
import com.gdk.service.CameraService;
import com.gdk.service.LoginService;
import com.gdk.service.NavigationService;
import com.gdk.utils.Md5Utils;


/**
 * 摄像头业务处理
 * */
@Service("CameraService")
public class CameraServiceImpl implements CameraService {
	@Autowired
    private CameraDao cameraDao;

	 @Override
	public List<Map<String, Object>> selectAllCamera() {
		return cameraDao.selectAllCamera();
	}
	
	 @Override
	public int addCamera(Map<String, Object> map) {
		return cameraDao.addCamera(map);
	}
	@Override
	public Map<String, Object> selectCameraDetails(Map<String, Object> map) {
		return cameraDao.selectCameraDetails(map);
	}
	@Override
	public int updateCameraDetails(Map<String, Object> map) {
		return cameraDao.updateCameraDetails(map);
	}
	@Override
	public int addCameraCategory(Map<String, Object> map) {
		return cameraDao.addCameraCategory(map);
	}
	@Override
	public List<Map<String, Object>> selectAllCameraCategory() {
		return cameraDao.selectAllCameraCategory();
	}
	@Override
	public int updateCameraCategoryDetails(Map<String, Object> map) {
		return cameraDao.updateCameraCategoryDetails(map);
	}
	@Override
	public Map<String, Object> selectCameraCategoryDetails(Map<String,Object> map) {
		return cameraDao.selectCameraCategoryDetails(map);
	}
}
